package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchRealTimePressureReportsMapper;
import com.ruoyi.system.domain.DispatchRealTimePressureReports;
import com.ruoyi.system.service.IDispatchRealTimePressureReportsService;

/**
 * 实时压力报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchRealTimePressureReportsServiceImpl implements IDispatchRealTimePressureReportsService 
{
    @Autowired
    private DispatchRealTimePressureReportsMapper dispatchRealTimePressureReportsMapper;

    /**
     * 查询实时压力报
     * 
     * @param realTimePressureReportsId 实时压力报主键
     * @return 实时压力报
     */
    @Override
    public DispatchRealTimePressureReports selectDispatchRealTimePressureReportsByRealTimePressureReportsId(Long realTimePressureReportsId)
    {
        return dispatchRealTimePressureReportsMapper.selectDispatchRealTimePressureReportsByRealTimePressureReportsId(realTimePressureReportsId);
    }

    /**
     * 查询实时压力报列表
     * 
     * @param dispatchRealTimePressureReports 实时压力报
     * @return 实时压力报
     */
    @Override
    public List<DispatchRealTimePressureReports> selectDispatchRealTimePressureReportsList(DispatchRealTimePressureReports dispatchRealTimePressureReports)
    {
        return dispatchRealTimePressureReportsMapper.selectDispatchRealTimePressureReportsList(dispatchRealTimePressureReports);
    }

    /**
     * 新增实时压力报
     * 
     * @param dispatchRealTimePressureReports 实时压力报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchRealTimePressureReports(DispatchRealTimePressureReports dispatchRealTimePressureReports)
    {
        return dispatchRealTimePressureReportsMapper.insertDispatchRealTimePressureReports(dispatchRealTimePressureReports);
    }

    /**
     * 修改实时压力报
     * 
     * @param dispatchRealTimePressureReports 实时压力报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchRealTimePressureReports(DispatchRealTimePressureReports dispatchRealTimePressureReports)
    {
        return dispatchRealTimePressureReportsMapper.updateDispatchRealTimePressureReports(dispatchRealTimePressureReports);
    }

    /**
     * 批量删除实时压力报
     * 
     * @param realTimePressureReportsIds 需要删除的实时压力报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchRealTimePressureReportsByRealTimePressureReportsIds(Long[] realTimePressureReportsIds)
    {
        return dispatchRealTimePressureReportsMapper.deleteDispatchRealTimePressureReportsByRealTimePressureReportsIds(realTimePressureReportsIds);
    }

    /**
     * 删除实时压力报信息
     * 
     * @param realTimePressureReportsId 实时压力报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchRealTimePressureReportsByRealTimePressureReportsId(Long realTimePressureReportsId)
    {
        return dispatchRealTimePressureReportsMapper.deleteDispatchRealTimePressureReportsByRealTimePressureReportsId(realTimePressureReportsId);
    }
}
